package cn.fj.xiaowei.main.test;

import cn.fj.xiaowei.main.XiaoweiMainApplication;
import cn.fj.xiaowei.main.utils.generator.CodeGenerator;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * Website Info 服务模块代码生成器
 */
@SpringBootTest(classes = XiaoweiMainApplication.class)
public class WebsiteInfoCodeGenerator {

    /**
     * 代码生成器
     */
    @Autowired
    private CodeGenerator codeGenerator;

    /**
     * 使用基于 Mybatis Plus 的代码生成器生成代码
     */
    @Test
    public void generateCodeBaseMP() {
        codeGenerator.generateCodeBaseMP(
                "cn.fj.xiaowei.main.service.website.info",
                "E:\\project\\xiaowei\\xiaowei-main\\main-parent\\main-service\\service-website-info\\src\\main\\java",
                "website_info"
        );
    }

}
